package com.mcxx.modules.miniSalvation.family.entity;

import com.mcxx.validate.group.Creation;
import com.mcxx.validate.group.Deletion;
import com.mcxx.validate.group.Update;
import com.yinhai.ta404.core.validate.annotation.V;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@ApiModel
@Data
public class FamilySupportEntity implements Serializable{

	private static final long serialVersionUID = 7914364394583447862L;

    @V(value = {"notnull"},groups = {Update.class, Deletion.class})
	private String id;

	@ApiModelProperty(value = "家庭主体ID，从身份证查询时可获得，必填")
    @V(value = {"notnull"},groups = {Creation.class, Update.class})
    private String familyId;

    @ApiModelProperty(value = "姓名")
    private String name;

    @ApiModelProperty(value = "性别")
    private String sex;

    @ApiModelProperty(value = "身份证号")
    @V(value = {"notnull","idcard"}, groups = {Creation.class,Update.class})
    private String idcard;

    @ApiModelProperty(value = "被赡(抚)养人姓名")
    private String supportName;

    @ApiModelProperty(value = "与被赡(抚)养人关系")
    private String supportRelation;

    @ApiModelProperty(value = "赡(抚)养费")
    private String supportFee;

    @ApiModelProperty(value = "备注")
    private String remark;

    @ApiModelProperty(value = "状态")
    private String state;

    @ApiModelProperty(value = "联系电话")
    private String phone;

    @ApiModelProperty(value = "工作单位")
    private String workPlace;

    @ApiModelProperty(value = "赡(抚)养人基本情况")
    private String supportInfo;

    private String nameStr;

    private String relationStr;

    private String supportInfoStr;

    private String sexStr;

    private String infoStr;

}
